import { defineStore } from 'pinia'

export const useSettingsStore = defineStore('settings', {
  state: () => ({
    notifications: true,
    darkMode: false,
    language: 'zh-CN'
  }),
  
  getters: {
    currentSettings: (state) => {
      return JSON.stringify(state, null, 2)
    }
  },
  
  actions: {
    resetSettings() {
      this.notifications = true
      this.darkMode = false
      this.language = 'zh-CN'
    }
  }
})